From: Magnus Manske Date: Tue, 10 Jan 2006 21:49:56 +0000 (+0000) Subject: mini-fix X-Git-Tag: 1.6.0~622 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=38f0c4969d4ed3b8566eee8eb301059f4d94f711;p=lhc%2Fweb%2Fwiklou.git mini-fix --- diff --git a/includes/Wiki.php b/includes/Wiki.php index ffb46d6da7..8d62167e37 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -25,7 +25,7 @@ class MediaWiki { // Namespace might change when using redirects $article = new Article( $title ); - if($action == 'view' && !$wgRequest->getVal( 'oldid' ) ) { + if($action == 'view' && !$request->getVal( 'oldid' ) ) { $rTitle = Title::newFromRedirect( $article->fetchContent() ); if($rTitle) { # Reload from the page pointed to later diff --git a/index.php b/index.php index 373b17a728..c535ae7b85 100644 --- a/index.php +++ b/index.php @@ -151,7 +151,6 @@ if( !$wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) { SpecialPage::executePath( $wgTitle ); } else { - require_once( "includes/Wiki.php" ) ; $mediaWiki = new MediaWiki() ;